package com.yfqy.app.enums;

import lombok.Getter;

/**
 * 积分类型
 */
@Getter
public enum IntegralType {
    SIGN_IN_REWARD((byte) 1, "签到奖励"),
    ORDER_REWARD((byte) 2, "订单奖励"),
    REGISTER_GIFT((byte) 3, "注册赠送"),
    BIND_PHONE((byte) 4, "绑定手机号"),
    EXCHANGE_DEDUCTION((byte) 5, "兑换抵扣"),
    ORDER_DEDUCTION((byte) 6, "订单扣除"),
    ADMIN_ADJUSTMENT((byte) 7, "管理员调整"),
    CANCEL_ORDER_SEND_BACK((byte) 8, "取消订单退回"),
    ;

    private final byte code;
    private final String desc;

    IntegralType(byte code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    @Getter
    public enum BusinessType {
        order,
        cancel_order,
        sign_in,
        ;
    }

}
